﻿@model IEnumerable<Model.Student>

@{
    ViewBag.Title = "Index";
}

@{
    string teacherpictures = System.Web.HttpUtility.UrlDecode(Request.Cookies["teacherInfo"]["teacherPicture"], System.Text.Encoding.UTF8);
    string teachername = System.Web.HttpUtility.UrlDecode(Request.Cookies["teacherInfo"]["teacherName"], System.Text.Encoding.UTF8);
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>添加-添加学生</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="robots" content="all,follow">
    <!-- Bootstrap CSS-->
    <link rel="stylesheet" href="~/Content/UI/vendor/bootstrap/css/bootstrap.min.css">
    <!-- Font Awesome CSS-->
    <link rel="stylesheet" href="~/Content/UI/vendor/font-awesome/css/font-awesome.min.css">
    <!-- Fontastic Custom icon font-->
    <link rel="stylesheet" href="~/Content/UI/css/fontastic.css">
    <!-- Google fonts - Poppins -->
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:300,400,700">
    <!-- theme stylesheet-->
    <link rel="stylesheet" href="~/Content/UI/css/style.default.css" id="theme-stylesheet">
    <!-- Custom stylesheet - for your changes-->
    <link rel="stylesheet" href="~/Content/UI/css/custom.css">
    <!-- Favicon-->
    <link rel="shortcut icon" href="~/Content/UI/img/favicon.ico">
    <!-- Tweaks for older IEs-->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script><![endif]-->
</head>
<body>
    <div class="page">
        <!-- Main Navbar-->
        <header class="header">
            <nav class="navbar">
                <!-- Search Box-->
                <div class="search-box">
                    <button class="dismiss"><i class="icon-close"></i></button>
                    <form id="searchForm" action="#" role="search">
                        <input type="search" placeholder="What are you looking for..." class="form-control">
                    </form>
                </div>
                <div class="container-fluid">
                    <div class="navbar-holder d-flex align-items-center justify-content-between">
                        <!-- Navbar Header-->
                        <div class="navbar-header">
                            <!-- Navbar Brand -->
                            <a href="index.html" class="navbar-brand d-none d-sm-inline-block">
                                <div class="brand-text d-none d-lg-inline-block"><span>练习生选课系统 </span><strong></strong></div>
                                <div class="brand-text d-none d-sm-inline-block d-lg-none"><strong>练习生</strong></div>
                            </a>
                            <!-- Toggle Button-->
                            <a id="toggle-btn" href="#" class="menu-btn active"><span></span><span></span><span></span></a>
                        </div>
                        <!-- Navbar Menu -->
                        <ul class="nav-menu list-unstyled d-flex flex-md-row align-items-md-center">
                            <!-- Search-->
                            <li class="nav-item d-flex align-items-center"><a id="search" href="#"><i class="icon-search"></i></a></li>
                            <!-- Notifications-->

                            <!-- Messages                        -->

                            <!-- Logout    -->
                            <li class="nav-item"><a href="/login/index" class="nav-link logout"><span class="d-none d-sm-inline">登出</span><i class="fa fa-sign-out"></i></a></li>
                        </ul>
                    </div>
                </div>
            </nav>
        </header>
        <div class="page-content d-flex align-items-stretch">
            <!-- Side Navbar -->
            <nav class="side-navbar">
                <!-- Sidebar Header-->
                <div class="sidebar-header d-flex align-items-center">
                    <div class="avatar">
                        <img src=@teacherpictures alt="..." class="img-fluid rounded-circle">
                    </div>
                    <div class="title">
                        <h1 class="h4">@teachername</h1>
                        <p>任课老师</p>
                    </div>
                </div>
                <!-- Sidebar Navidation Menus-->
                <span class="heading">菜单</span>
                <ul class="list-unstyled">
                    <li><a href="/teacher/index"><i class="icon-home"></i>首页 </a></li>
                                        <li ><a href="#exampledropdownDropdown12" aria-expanded="false" data-toggle="collapse"><i class="icon-padnote"></i>管理 </a>
                        <ul id="exampledropdownDropdown12" class="collapse list-unstyled ">
                            <li><a href="/Teacher/SubManage">课程管理</a></li>
                            <li><a href="/Teacher/StudentManage">学生管理</a></li>
                        </ul>
                    </li>
                    <li class="active"><a href="#exampledropdownDropdown11" aria-expanded="false" data-toggle="collapse"><i class="icon-grid"></i>添加 </a>
                        <ul id="exampledropdownDropdown11" class="collapse list-unstyled ">
                            <li><a href="/Teacher/CreateSub">添加课程</a></li>
                            <li><a href="/Teacher/CreateStudent">添加学生</a></li>
                        </ul>
                    </li>
                    <li><a href="/teacher/teacherinfo"><i class="icon-interface-windows"></i>个人信息 </a>
                    </li>
                    <li><a href="/Login/Index"><i class="icon-interface-windows"></i>退出登录 </a></li>
                </ul>
            </nav>
            <div class="content-inner">
                <!-- Page Header-->
                <header class="page-header">
                    <div class="container-fluid">
                        <h2 class="no-margin-bottom">添加</h2>
                    </div>
                </header>
                <!-- Breadcrumb-->
                <div class="breadcrumb-holder container-fluid">
                    <ul class="breadcrumb">
                        <li class="breadcrumb-item"><a href="/teacher/index">首页</a></li>
                        <li class="breadcrumb-item active">添加            </li>
                    </ul>

                </div>
                <div class="col-lg-12">
                    <div class="card">
                        <div class="card-close">
                            <div class="dropdown">
                                <button type="button" id="closeCard5" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="dropdown-toggle"><i class="fa fa-ellipsis-v"></i></button>
                                <div aria-labelledby="closeCard5" class="dropdown-menu dropdown-menu-right has-shadow"><a href="#" class="dropdown-item remove"><i class="fa fa-times"></i>关闭</a><a href="#" class="dropdown-item edit"> <i class="fa fa-gear"></i>设置</a></div>
                            </div>
                        </div>
                        <div class="card-header d-flex align-items-center">
                            <h3 class="h4">添加学生</h3>
                        </div>
                        <div class="card-body">
                            @using (Html.BeginForm("CreateStudent","Teacher"))
                            {
                                @Html.ValidationSummary(true)
                                <fieldset>
                                    <form class="form-horizontal">
                                        <div class="row">
                                            <label class="col-sm-3 form-control-label">学生信息</label>
                                            <div class="col-sm-9">
                                                <div class="form-group-material">
                                                    <label for="register-username" class="label-material">学生姓名</label>
                                                    <input id="register-stuName" type="text" name="registerUsername" required class="input-material">
                                                </div>
                                                <div class="form-group-material">
                                                    <label for="register-username" class="label-material">学生学号</label>
                                                    <input id="register-stuId" type="text" name="registerUserID" required class="input-material">
                                                </div>
                                                <div class="form-group-material">
                                                    <label for="register-password" class="label-material">学生初始密码</label>
                                                    <input id="register-password" type="password" name="registerPassword" required class="input-material">
                                                </div>
                                                <div class="form-group row">
                                                    <label class="col-sm-3 form-control-label">学生班级</label>

                                                    <div class="col-sm-9">
                                                        @Html.DropDownList("ClassForm", "请选择班级")
                                                        @Html.ValidationMessageFor(model => model.FirstOrDefault().ClassForm)
                                                    </div>

                                                </div>
                                            </div>
                                        </div>
                                        <div class="form-group row">
                                            <div class="col-sm-4 offset-sm-3">
                                                <button type="submit" class="btn btn-secondary">取消</button>
                                                <button id="addInfo" type="submit" class="btn btn-primary">确认添加</button>
                                            </div>
                                        </div>
                                    </form>
                                </fieldset>
                            }
                            @section Scripts {
                                @Scripts.Render("~/bundles/jqueryval")
                            }
                        </div>
                    </div>
                </div>

                <footer class="main-footer">
                    <div class="container-fluid">
                        <div class="row">
                            <div class="col-sm-6">
                                <p>LXS &copy; 2019</p>
                            </div>
                            <div class="col-sm-6 text-right">
                                <p>练习生选课管理系统<a href="#" target="_blank" title="选课管理系统"></a> -  from <a href="#" title="学校" target="_blank">湖南工程</a></p>

                            </div>
                        </div>
                    </div>
                </footer>
            </div>
        </div>
    </div>
    <!-- JavaScript files-->
    <script src="~/Content/UI/vendor/jquery/jquery.min.js"></script>
    <script src="~/Content/UI/vendor/popper.js/umd/popper.min.js"> </script>
    <script src="~/Content/UI/vendor/bootstrap/js/bootstrap.min.js"></script>
    <script src="~/Content/UI/vendor/jquery.cookie/jquery.cookie.js"> </script>
    <script src="~/Content/UI/vendor/chart.js/Chart.min.js"></script>
    <script src="~/Content/UI/vendor/jquery-validation/jquery.validate.min.js"></script>
    <!-- Main File-->
    <script src="~/Content/UI/js/front.js"></script>
</body>
</html>



